package com.example.movie.service;

import com.baomidou.mybatisplus.extension.service.IService;
import com.example.movie.domain.R;
import com.example.movie.domain.User;

import javax.servlet.http.HttpServletRequest;
import java.util.List;

/**
* @author HuRan
* @description 针对表【user(用户表，用于存储用户的基本信息)】的数据库操作Service
* @createDate 2024-10-24 11:09:25
*/
public interface UserService extends IService<User> {
    R register(User user);
    R login(User user, HttpServletRequest request);
    Boolean isLogin(HttpServletRequest request);
    R logout(HttpServletRequest request);
    List<User> getUserListByUserIDS(List<Long> userIDS);
    R update(User user);
    R changePassword(Long userId, String oldPassword, String newPassword);
}
